CommonsBooking 2.8.5 RC1

Does Commons Booking work with WordPress 6.3.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
4PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 910.88 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.021 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.3.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 200+
WordPress.org page https://wordpress.org/plugins/commonsbooking/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 22

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=commonsbooking%2Fcommonsbooking.php&plugin_status=all&paged=1&s&_wpnonce=6118aeb116
Aspect after-activation
HTTP status 200
Load time 1.618 s
Memory usage 3.98 MiB
JS errors None
Resource errors None

Settings → CommonsBooking

Page screenshot: Settings → CommonsBooking
URL /wp-admin/options-general.php?page=commonsbooking_options
Aspect menu-item
HTTP status 200
Load time 0.236 s
Memory usage 3.93 MiB
JS errors None
Resource errors None

Settings → CommonsBooking → General

Page screenshot: Settings → CommonsBooking → General
URL /wp-admin/admin.php?page=commonsbooking_options_general
Aspect menu-item-tab
HTTP status 200
Load time 0.258 s
Memory usage 3.66 MiB
JS errors None
Resource errors None

Settings → CommonsBooking → Booking Codes

Page screenshot: Settings → CommonsBooking → Booking Codes
URL /wp-admin/admin.php?page=commonsbooking_options_bookingcodes
Aspect menu-item-tab
HTTP status 200
Load time 0.212 s
Memory usage 3.58 MiB
JS errors None
Resource errors None

Settings → CommonsBooking → Templates

Page screenshot: Settings → CommonsBooking → Templates
URL /wp-admin/admin.php?page=commonsbooking_options_templates
Aspect menu-item-tab
HTTP status 200
Load time 0.287 s
Memory usage 3.87 MiB
JS errors None
Resource errors None

Settings → CommonsBooking → Restrictions

Page screenshot: Settings → CommonsBooking → Restrictions
URL /wp-admin/admin.php?page=commonsbooking_options_restrictions
Aspect menu-item-tab
HTTP status 200
Load time 0.226 s
Memory usage 3.65 MiB
JS errors None
Resource errors None

Settings → CommonsBooking → Reminder

Page screenshot: Settings → CommonsBooking → Reminder
URL /wp-admin/admin.php?page=commonsbooking_options_reminder
Aspect menu-item-tab
HTTP status 200
Load time 0.248 s
Memory usage 3.65 MiB
JS errors None
Resource errors None

Settings → CommonsBooking → Migration

Page screenshot: Settings → CommonsBooking → Migration
URL /wp-admin/admin.php?page=commonsbooking_options_migration
Aspect menu-item-tab
HTTP status 200
Load time 0.274 s
Memory usage 3.64 MiB
JS errors None
Resource errors None

Settings → CommonsBooking → Export

Page screenshot: Settings → CommonsBooking → Export
URL /wp-admin/admin.php?page=commonsbooking_options_export
Aspect menu-item-tab
HTTP status 200
Load time 0.274 s
Memory usage 3.77 MiB
JS errors None
Resource errors None

Settings → CommonsBooking → API

Page screenshot: Settings → CommonsBooking → API
URL /wp-admin/admin.php?page=commonsbooking_options_api
Aspect menu-item-tab
HTTP status 200
Load time 0.255 s
Memory usage 3.64 MiB
JS errors None
Resource errors None

Settings → CommonsBooking → Advanced Options

Page screenshot: Settings → CommonsBooking → Advanced Options
URL /wp-admin/admin.php?page=commonsbooking_options_advanced-options
Aspect menu-item-tab
HTTP status 200
Load time 0.255 s
Memory usage 3.65 MiB
JS errors None
Resource errors None

Commons Booking

Page screenshot: Commons Booking
URL /wp-admin/admin.php?page=cb-dashboard
Aspect menu-item
HTTP status 200
Load time 0.302 s
Memory usage 3.69 MiB
JS errors None
Resource errors None

Commons Booking → Timeframes

Page screenshot: Commons Booking → Timeframes
URL /wp-admin/edit.php?post_type=cb_timeframe
Aspect menu-item
HTTP status 200
Load time 0.462 s
Memory usage 3.66 MiB
JS errors None
Resource errors None

Commons Booking → Items

Page screenshot: Commons Booking → Items
URL /wp-admin/edit.php?post_type=cb_item
Aspect menu-item
HTTP status 200
Load time 0.257 s
Memory usage 3.62 MiB
JS errors None
Resource errors None

Commons Booking → Locations

Page screenshot: Commons Booking → Locations
URL /wp-admin/edit.php?post_type=cb_location
Aspect menu-item
HTTP status 200
Load time 0.237 s
Memory usage 3.62 MiB
JS errors None
Resource errors None

Commons Booking → Bookings

Page screenshot: Commons Booking → Bookings
URL /wp-admin/edit.php?post_type=cb_booking
Aspect menu-item
HTTP status 200
Load time 0.227 s
Memory usage 3.63 MiB
JS errors None
Resource errors None

Commons Booking → Maps

Page screenshot: Commons Booking → Maps
URL /wp-admin/edit.php?post_type=cb_map
Aspect menu-item
HTTP status 200
Load time 0.258 s
Memory usage 3.62 MiB
JS errors None
Resource errors None

Commons Booking → Restrictions

Page screenshot: Commons Booking → Restrictions
URL /wp-admin/edit.php?post_type=cb_restriction
Aspect menu-item
HTTP status 200
Load time 0.263 s
Memory usage 3.62 MiB
JS errors None
Resource errors None

Commons Booking → Item Categories

Page screenshot: Commons Booking → Item Categories
URL /wp-admin/edit-tags.php?taxonomy=cb_items_category
Aspect menu-item
HTTP status 200
Load time 0.241 s
Memory usage 3.58 MiB
JS errors None
Resource errors None

Commons Booking → Location Categories

Page screenshot: Commons Booking → Location Categories
URL /wp-admin/edit-tags.php?taxonomy=cb_locations_category
Aspect menu-item
HTTP status 200
Load time 0.247 s
Memory usage 3.58 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.506 s
Memory usage 7.53 MiB
JS errors None
Resource errors None

Widgets ‹ Test site — WordPress

Page screenshot: Widgets ‹ Test site — WordPress
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 200
Load time 2.581 s
Memory usage 6.45 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.375 s0.469 s+0.094 s2.83 MiB3.64 MiB+ 836.08 KiB
/wp-admin/edit.php0.216 s0.285 s+0.069 s2.85 MiB3.76 MiB+ 934.42 KiB
/wp-admin/post-new.php0.857 s1.036 s+0.179 s5.22 MiB6.56 MiB+ 1.34 MiB
/wp-admin/upload.php0.852 s0.611 s-0.241 s2.77 MiB3.58 MiB+ 831.39 KiB
/wp-admin/options-writing.php0.232 s0.232 s+0.000 s2.76 MiB3.57 MiB+ 825.18 KiB
/wp-admin/media-new.php0.319 s0.291 s-0.028 s2.74 MiB3.56 MiB+ 836.66 KiB
/wp-admin/edit-tags.php?taxonomy=category0.251 s0.239 s-0.012 s2.76 MiB3.59 MiB+ 849.49 KiB
/wp-admin/post-new.php?post_type=page0.725 s0.688 s-0.037 s5.21 MiB6.51 MiB+ 1.3 MiB
/wp-admin/options-discussion.php0.267 s0.436 s+0.169 s2.75 MiB3.56 MiB+ 831.37 KiB
/wp-admin/edit-comments.php0.267 s0.286 s+0.019 s2.78 MiB3.59 MiB+ 830.35 KiB
/0.322 s0.345 s+0.023 s3.13 MiB3.66 MiB+ 539.73 KiB
Average 0.426 s0.447 s+0.021 s3.25 MiB4.14 MiB+ 910.88 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

JavaScript
PHP
Sass
Language % Lines of code Comment lines Files
JavaScript47.6%24,1528,10228
PHP31.0%15,6975,774122
Sass14.1%7,1421332
PO File3.6%1,8479481
CSS2.5%1,2874416
JSON1.2%59105
Total 50,716 14,881 204

PHP Code Analysis | More results »

Lines of code 12,858
Total complexity 2,298
Median class complexity 13.0
Median method complexity 2.0
Most complex class CommonsBooking\Wordpress\CustomPostType\Booking
Most complex function CommonsBooking\Map\MapAdmin::validate_options()
Classes 87
Methods 628
Functions 28

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Database Tables 1

Options wp_options 10

Custom Post Types 6

ID Name
cb_itemItems
cb_locationLocations
cb_timeframeTimeframes
cb_mapMaps
cb_bookingBookings
cb_restrictionRestrictions

Sidebar Widgets 1

ID Name
commonsbooking-user-widgetCommonsBooking User Widget

Meta Boxes

{
    "cb_item": {
        "_cb_item_info": {
            "title": "Item Info",
            "context": "normal"
        }
    },
    "cb_location": {
        "_cb_location_adress": {
            "title": "Address",
            "context": "normal"
        },
        "_cb_location_info": {
            "title": "General Location information",
            "context": "normal"
        }
    },
    "cb_timeframe": {
        "cb_timeframe-custom-fields": {
            "title": "Timeframe",
            "context": "normal"
        }
    },
    "cb_booking": {
        "cb_booking-custom-fields": {
            "title": "Booking",
            "context": "normal"
        }
    },
    "cb_restriction": {
        "cb_restriction-custom-fields": {
            "title": "Restriction",
            "context": "normal"
        }
    }
}

Roles 1

ID Name
cb_managercb_manager

Capabilities 85

PHP Error Log 4 lines

[03-Nov-2023 18:52:33 UTC] PHP Deprecated:  Calling static trait method CommonsBooking\Service\Cache::clearCache is deprecated, it should only be called on a class using the trait in /wp-content/plugins/commonsbooking/src/Service/Upgrade.php on line 95
[03-Nov-2023 18:52:33 UTC] PHP Deprecated:  Calling static trait method CommonsBooking\Service\Cache::getCache is deprecated, it should only be called on a class using the trait in /wp-content/plugins/commonsbooking/src/Service/Cache.php on line 186
[03-Nov-2023 18:52:33 UTC] PHP Deprecated:  Calling static trait method CommonsBooking\Service\Cache::getCache is deprecated, it should only be called on a class using the trait in /wp-content/plugins/commonsbooking/src/Service/Cache.php on line 192
[03-Nov-2023 18:52:33 UTC] PHP Deprecated:  Calling static trait method CommonsBooking\Service\Cache::getCache is deprecated, it should only be called on a class using the trait in /wp-content/plugins/commonsbooking/src/Service/Cache.php on line 193
See also: All tests for this plugin, How to Hide Commons Booking Admin Menus and Meta Boxes